package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.SysConfig;
import org.springframework.data.jpa.repository.JpaRepository;

public interface SysConfigRepository extends JpaRepository<SysConfig, Long> {

    SysConfig findFirstById(long id);

    SysConfig findFirstByUniqIdx(String uniqIdx);

    SysConfig findFirstByUniqIdxAndStatus(String uniqIdx, int status);

    SysConfig findFirstByUniqIdxAndIdNot(String uniqIdx, long id);

}
